function testSuite(tests)
%tests: cell containing one test function by unitTest
%	(e.g test{1}=@myUnitTest)

	fprintf('Running tests...\n\n')
	allRes=[];
	for i=1:size(tests,2)
		test=tests{i};
		testinf=functions(test);
		fprintf('test:%s...',testinf.function)
		res=0;
		err='';
		try
			test();
			res=1;
		catch err
			err=err;
		end
		allRes=[allRes res];
		if res==1
			fprintf('OK\n')
		else
			fprintf('FAIL: msg:%s\n',err.message)
			for st=1:size(err.stack,1)
				fprintf('\tline:%i file:%s\n',err.stack(st).line,err.stack(st).file)
			end
		end	
	end
	sz=size(allRes,2);	
	fprintf('\n\nTotal:%i ok:%i failed:%i\n',sz,sum(allRes),sum(allRes==0))
